FROM node:16
# author
MAINTAINER bihua
# 设定时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 挂载目录
VOLUME /www/wwwroot/bihua/rule
# 创建目录
RUN mkdir -p /www/wwwroot/bihua/rule
# 指定工作路径
WORKDIR /www/wwwroot/bihua/rule
# Install app dependencies
COPY package.json .
RUN npm install
# Bundle app source
COPY . ./
CMD [ "node", "index.js" ]
